import 'package:dio/dio.dart';

// 单力 dio 对象
class DioSingletonManager {
  Dio _dio;

  DioSingletonManager._internal() {
    _dio = new Dio();
  }

  static DioSingletonManager singleton = DioSingletonManager._internal();

  factory DioSingletonManager() => singleton;

  get dio {return  _dio;}
}
